package com.yue.se.thread.test;

import java.util.concurrent.Callable;

/**
 * Created by yueyang on 2016/8/28.
 */
public class B implements Callable<String> {
    private String flag;
/*    private C c;
    public B(C c){
        this.c = c;
    }*/

    @Override
    public String call() throws Exception {
        int flag = test();
        if (flag == 1){
            return "success";
        }
        return "fial";
    }

    private int test(){
        return 1;
    }

   /* @Override
    public void run() {
        try {
            c.lianjie();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }*/
}
